<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>
    <meta content="text/html; charset=utf-8" />
    <title>知识产权后台管理系统-修改知识产权</title>
    <link href="/ip/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/ip/Public/css/mystyle.css" rel="stylesheet">
</head>

<body>
    <!-- 导航栏 -->
    
    <!-- 发布内容 -->
    <link href="/ip/Public/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <div class="container">
        <form method="post" class="form-horizontal" action="/ip/admin.php/Home/Info/doedit/id/<?php echo ($info[0]["id"]); ?>" enctype="multipart/form-data">
            <div class="form-group">
                <label class="col-sm-2 control-label">产权名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="ip_name" required value="<?php echo ($info[0]["ip_name"]); ?>">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">联系方式</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="phone" required value="<?php echo ($info[0]["phone"]); ?>">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">参考价格</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="price" required value="<?php echo ($info[0]["price"]); ?>">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">知识产权类型</label>
                <div class="col-sm-8">
                    <select class="form-control" name="typeid">
                        <?php if(is_array($typeList)): foreach($typeList as $key=>$type): if($type["id"] == $info[0]['typeid']): ?><option value="<?php echo ($type["id"]); ?>" selected = "selected"><?php echo ($type["cate_name"]); ?></option>
                                <?php else: ?>
                                <option value="<?php echo ($type["id"]); ?>"><?php echo ($type["cate_name"]); ?></option><?php endif; endforeach; endif; ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">封面图片</label>
                <img src="/ip/Public/img/info_ico/<?php echo ($info[0]["picurl"]); ?>" class="col-sm-2 control-label img-thumbnail" width="100" height="100">
                <div class="col-sm-6">
                    <input type="file" name="pic">
                    <p class="help-block">如需更新上传新封面图片,选择一张小于3M的图片上传。</p>
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">知识产权简介</label>
                <div class="col-sm-8">
                    <script type="text/plain" name="intro" id="myEditor" style="height:510px;width:100%"><?php echo ($info[0]["intro"]); ?></script>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="col-sm-3 col-sm-offset-3">
                <a href="/ip/admin.php/Home/Info/index" class="btn btn-primary btn-block">取消</a>
            </div>
            <div class="col-sm-3">
                <input type="submit" value="保存" class="btn btn-primary btn-block" data-toggle="modal">
            </div>
        </form>
    </div>
    <!-- 底部 -->
    
<div class="footer">
    <div class="pull-right">
        <a href="/ip/admin.php/Home/Index/index">知识产权后台管理系统</a>
    </div>
</div>
</div>
<script type="text/javascript">
    function shifou(){
        if(confirm("年轻人，你真的想好了吗？")){
            return true;
        }else{
            return false;
        }
    }
</script>
</body>
</html>
           <!-- Mainly scripts -->
    <script src="/ip/Public/js/jquery-2.1.1.js"></script>
    <script src="/ip/Public/js/inspinia.js"></script>
    <script src="/ip/Public/js/bootstrap.min.js"></script>
    <script src="/ip/Public/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/ip/Public/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Flot -->
    <script src="/ip/Public/js/plugins/flot/jquery.flot.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.spline.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.pie.js"></script>

    <!-- Peity -->
    <script src="/ip/Public/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/ip/Public/js/demo/peity-demo.js"></script>

    <!-- Custom and plugin javascript -->

    <script src="/ip/Public/js/plugins/pace/pace.min.js"></script>

    <!-- jQuery UI -->
    <script src="/ip/Public/js/plugins/jquery-ui/jquery-ui.min.js"></script>

    <!-- GITTER -->
    <script src="/ip/Public/js/plugins/gritter/jquery.gritter.min.js"></script>

    <!-- Sparkline -->
    <script src="/ip/Public/js/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!-- Sparkline demo data  -->
    <script src="/ip/Public/js/demo/sparkline-demo.js"></script>

    <!-- ChartJS-->
    <script src="/ip/Public/js/plugins/chartJs/Chart.min.js"></script>
<script>
        var s_url=window.location.pathname;
        var now_url = '';
        for(var i = 0;i<$("#side-menu li").length;i++){
            now_url=$("#side-menu li a").eq(i).attr("href");
            if(now_url == s_url){
                $("#side-menu a").eq(i).parent().addClass("active");
                $("#side-menu a").eq(i).parent().parent().parent().addClass("active");
                $("#side-menu a").eq(i).parent().parent().addClass("in");
            }else{
                $("#side-menu a").eq(i).parent().removeClass("active");
            }
        }
        </script>
    <!-- Toastr -->

    <script type="text/javascript" src="/ip/Public/umeditor/third-party/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ip/Public/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ip/Public/umeditor/umeditor.min.js"></script>
    <script type="text/javascript" src="/ip/Public/umeditor/lang/zh-cn/zh-cn.js"></script>
    <script>
    $(function() {
        var um = UM.getEditor('myEditor');
    })
    </script>
</body>

</html>